Fix problem in check for update