Some fixes related to the getDestinationsCommand