Fix issue with array splice on DELETE