fix updating bug and backup bug