fixing event simple_format condition