Corrected issue when deleting items. Delete was called and then the item was used again in another function call. delete has to happen last.
Authored by: jonathanobaker 2008-11-13
Parent: [r259]
Child: [r261]