Corrected deletion of array.