fixed bug in updating