Fix setting categories to contact objects.