Fix coordinate order