small fix for the sidebar event thing.