fixed scaling of coordinates