bug with selecting departments fixed