Correct of mouse input.