fix get mouse cursor position