fix response iteration if no response available
fix api not available
Merge pull request #3 from nwlunatic/fix_response_iteration

Fix response iteration