Fixed bugs in config