Fixed warnings in generators.