Fixed autoloading exception bug