add some code to manually set some variable/data-structures initial value, since they are incorrectly initialized due to some reason I cannot
figure out.