Fixed bug when moving directories into a new directory.