Remove invalid rules on events update