Fix Issue 10317 - Remove text(range) check and avoid recursive instantiation bug.