fixed capturing wrong 302 request bug.