Fix redirect problem