fix version check