fixing bug on 300 redirects.