fixed mistake with version check