Fix mouse position bug