fix a possible crash bug
update various configs