Fixed the mouse move code