Fix error in AssociationRepository