Fixed problems with setting variables in URLs