fix graph reset on search