try to fix redirect problems