Fixed bug where file was meant to be moved not copied