fixed bug that file can't move in tmp directory