Fixed bug in autoloader