* Fixed getUrl function;