Fixes multi-purge bug