Fixed url formation bug