Fix but about parallel

condition should just less than tail is ok;
Or this would induce the thread jump of the range of current thread, to
run data in other threads.