Fixing bug with config validation