fixed bug that causes graph to shrink