fixed issue in request_engine.py