fix parsing lang in url