Fix to bug re: moving files