Fixed bug of initialization