nearly fix same file bug