fix /user: issue with department = nil