Value get erased automatically,when typing

hi,
sorry for the delay reply,
i was find the reason y it doesnot come at first click
sometimes getdataatcell method doesnot get the new value.takes the old value…
code:
a = hot.getDataAtCell(0,0),
b = hot.getDataAtCell(0,1),
if(a==0 || b==0)
{
hot.setDataAtCell(1,1,0),
}
else{
hot.setDataAtCell(1,1,a),
}

this is my sample code.these all things are works fine.but sometimes it took the old value from the handsontable.that y it satisfy the wrong condition result also came erong.
please give a solution for that.