change the key.lower() to new_key.lower()

change the key.lower() to new_key.lower() in closure function get_original_key