Fixed bug in update checking