Expose a bug in delete()
Fix delete() bug: it deleted elements 1, 3, 5... only.