fixed issue with text decoder