fixed generator errors