Fixing url replace