fixed error during genaration