Fix infinite loop

 during creation of an select attribute and using a non mm table