fixed mouse pointer misplacement