fixing typo on has_key