Fix mouse position caculation error.