url parsing bugfix