fix the bug of autoload