fix missing xredirect handling