fixed TextField method issue