fixing url redirect