fix purge error