fix update detection