fixed race condition bug for keyLine rule with groups