Fix init method with url