fixing autoload bug