fixed metamodel generation problem