fixed a problem with the coordinates