Fixed bug in text-field impl