Fix error when the mouse is already at target

If Mouse() is called using the current position of the mouse an exception is thrown. This commit fixes this issue.