Small fix for generator