bug fix for removing items from hashes