Fixed sidebar error for department pages