Revert "Fix in the Ruletype filter."

This reverts commit f0acbe39fa7680f7e52340c4862355a297d1e964.