fix main/load_config return mismatch