Bugfixing in calling getUrl