fix version check macro