fix complex to_string bug