bugfix in ToGraphSequence