Fixes coordinate system