Fix errors in Autoloader.