Fixed init method