fix bugs in configuration