Fix init method.