updateMouse double call fix