Fix coordinate system conventions.