Fixed little bug in fg2dot.cpp