Fix the "purge existing assets" code.