fixed missing endif in sidebar