fix mouse positioning when clicking