Fixed creating generators.
Used auto instead of longer type name.