fix bug in department