Fixed error in value_to_string