repair __init__