fix to multiple redirect bug
Merge remote-tracking branch 'origin/master'