Fixed bug preventing Delete from working