fixed bug in initialization