fixed error with chrome mac and rules counting when null