Fixes calling of wrong thrift function.