Custom Joystick Stucks On Opening Of Roblox Menu

I was about test resetting direction of moving (when menu opens for pc) but met that bug,
Joystick (UIDragDetector) stuck in position at menu open moment and wasn’t able to move anymore,
made a script what resets his position but didnt helped, “stick” setting on center position, but the “drag” stick stuck at menu open moment position.

(Sorry for bad record quality) Video:

Script for resetting position is:

game.GuiService.MenuOpened:Connect(function()
	script.Parent.Parent.Position = UDim2.fromScale(0.5, 0.5)
	script.Parent.Enabled = false
	task.wait(0.05)
	script.Parent.Enabled = true
end)