Fixed autoload in generator