Fixed url redirect bug