fix department span when no department is given