bug fix: find index in resonse