fixed bug of data upgradation