correct minor bug with incorrect creates file