fix exception in coords dialog

* introduced in d1acac75b6af3239701a2df020488db2af2dcb05