fix if 0 events