fix has_key?