Fix constructor removing query in current url