minor fix && found the bug comes when creating new rules.