fix a bug for filtering hash contains string key, and filter more than twice