fix errors for using blocking queue