Fix broken compatibility version check