Fixed bugs in configuration