fix update checking