fix wierd redirect