Small fixes to printgraphw()