fix implicit textOnly and lint error