Fixed the bug about rules that have multiple matched output conditions.