Fixed logic in kojak when determining the state of configuration