fix clear graph