url construct bugfix