fixing errors in sidebar