Follow redirect bug fix