bugfix for greenlet error hanle