Fixed bugs in configuration.