Fix infinite loop

 during creation of an select attribute and using a non mm table
Merge pull request #35 from MrTool/patch-1

Fix infinite loop