fixed extract y points from graph bug