I was able to come up with a solutionf ro this issue doing the following code this basicly replaced my problem code section
RoleDefinition rda = web.RoleDefinitions.GetByName("Full Control");
RoleDefinition rdm = web.RoleDefinitions.GetByName("Contribute");
RoleDefinition rdv = web.RoleDefinitions.GetByName("Read");
RoleDefinitionBindingCollection bindA = new RoleDefinitionBindingCollection(context);
RoleDefinitionBindingCollection bindM = new RoleDefinitionBindingCollection(context);
RoleDefinitionBindingCollection bindV = new RoleDefinitionBindingCollection(context);
bindA.Add(rda);
bindM.Add(rdm);
bindV.Add(rdv);
web.RoleAssignments.Add(Admin, bindA);
web.RoleAssignments.Add(Members, bindM);
web.RoleAssignments.Add(Visitor, bindV);
If anyone has a better solution let me know this is the only way I could get it to work.