fix update check