Fixed bug when no collection is specified that caused src file to be deleted