fixed a bug in the autoloader