Fix error in the sidebar view