fix bugs in config
complete config