Fix a crash on loading coordinates