[events] Fix bug on active sidebar