fixed exceptions autoloading
fixed type error