Fixing type of event problem in rules