fixed upgrade check