Fix a bug with collapsed events in PMs