Fixed redirect Bug