fixing the coordinates on the canvas