redirect param bug fix