Fix bug in param key compare logic.