fixed a basic bug of not setting the data in hash_lookup
bug fix for hash_delete.