Delete bug.

'delete' was removing the entire array, throwing us into disarray ho ho
splice now used instead.