fix department template structure