fixed problem with file gen