Fixing a bug affecting event with negative id (due to faulty use of signed int instead of unsigned one), thus resulting in filter not applied correctly for them.