Bugfixed: init url before use it