fix status bug and reduce the number of slave threads