Fix MODE determination condition.