fix bunch of coordinate typo bugs