Bug fixes

Cleaned up delete item.