fixed a bug in configuration