fix graph, set min & max