Fixed redirect script.