fixing bugs for updating