Fixed deletion of diary items.