fix nil key in hash