fixed parsing for urls