Fixed a mouse click checking issue.