fixes occupations bug