fix offline version check bug