fix purge