bug fix: cant handle generator result from wsgi func