fixed some bugs with the check for Update