fixed text decoding bug