Fixed redirect errors