getProfile added. Fix nil department