fix redirect mess