fix a bug in configuration