fixed bug on periods missing string in parsing url