hopefully fixed crash around nil url