Fix replacement of to_number without format.