Corrected autoloader function.