fix several 'text' errors