Fixed a bug on urlwrapper monkey patching.