ContextActionService:BindActionAtPriority() with Enum.UserInputType.MouseMovement doesn't work when the mouse is hovering CoreGui elements

When the mouse is hovering a coreGUI element, it stops working. Even with ‘Enum.ContextActionResult.Pass’ it seems to not do anything.

Is there a fix for it that uses ContextActionService?
Source Code:

local function updateMousePosition()
	cursor.Position = UDim2.fromOffset(mouse.X - 8, mouse.Y - 3)
	return Enum.ContextActionResult.Pass
end

contextActionService:BindActionAtPriority("MouseInput", updateMousePosition, false, Enum.RenderPriority.First.Value, Enum.UserInputType.MouseMovement)