Fixing coordinates and scaling.