fixing redirect