Fix to version check