bug in initialization