fix version check bug