Resolved #58. Fixed crash when deleting item.