Fixes for auto-purge scripts (missing array elements)