fix purging