fixing bug in config