Fixed move_mouse function.