fix purge command