Fix gtthread