small bug changes in the update process