fix for #32

Maybe the same function should be used in the MetaModelsTags.php