fixed thrift errors