fixed department bug