Fix array indexing in params.del properly