Fixed a small bug in the check for update message