Fixed potential bug with update version check