Fixing crash on rules after module update