fixed bug for next to graph view