fix: made the version check on updates atomic