Fixing bug: client does not modify the given URL