fixed error in initialization