Fixed an error in rules