Fixed bug in threadid(x/y/z) loop bounds