fixed bug in updating info code