Fixed bugs in visualizeMorphDefs.sh