fixed tag_key_value behavior