Fixed broken before and after tokens in event sets.