remedy a redirect bug