Fixed error in initialization