fix associations for assignment and assignment_type