Fixed autoloading of classes on class_exists