fixed a bug using gevent pool