Fix displaying of multiple graphs.

Change-Id: Ic07ef60bad2ea5d7ab469e251e84f6807bd6b7eb