fixed drawGraph update