fix move file/directory failed