corrected coordinates on click