department display bug fix