Fixed some join partition number and threads.