Fix compile error,update config