fixed returning of the coordinates for input fields