fix the formatting of coordinates