bug fix for thrift decoder