fixed department dialog bug