Fixed a bug when saving new destinations