fixed rendering of graph