fix bug with autoload