fix in modelbuilder visitor (already present in the master branch)