fix bug with graph view