Fixing the purge bug