fix the bug that new fig cannot "forget" previous plots