fixed bug in generator when classes have no option at all
 added missing instances