Fix url / and nil execption