Fixed a bug that prevented creating new rules