fix error in sidebar