string decoding didnt update pos