fixed generator error