Fixing redirect responses