Mouse position rectification