Fixing version class not available to else condition.