Fix problem deleting array item.