Fix serious mistake in graph generation.