fix the bug in config