fix directory move method