fix #11 validates coordinates before saving