Fixed bug in delete_key. When you try to delete a key it delete the first key in list instead of specified id.