fix graph view bug