Correct destination coords when closing dialog

Fixes #106