Fixed bug with Delete, and renamed bad var name from 'key' to 'id'