fix thrift