bug fix for department schema