fixing bugs in updating information