Fix bug in sidebar.