one of bug fixes of linegraph