Fixed a bug in textAuth