Fixed an issue where destination was taken from empty preference.