fixing url and scheme