fix internal thread interface confusion

thanks @ronghanghu for pointing this out in #964