Fixed chekc of initialization