Transform correctly the coordinates.