Fixed updating rules.