fixes a bug in parse url