hotfix for IE (malformed url with ? at the end)