Fix loading config error