Fixed a bug where a graph could not be selected for the viewer