fixed bug with coordinates for touch events