fixed autoloader logic error