fixing bugs with initLeveling twice