generator fix