fix the bugs in kernel, makes it pass iris test while n_threads is large