fixed error in __init__