Fix init method with URL