Fixes bug when a person department in nil