Fixes event comparison