fix coord exchange