fixing url passing to wrapper