Fixed redirect problem