Fix parsing issue when multiple constants in graph