fix move file function