 void show_main_screen(void)
 {
   lcd.clear();
-  display_sel_value(VfoFrequency, VfoSelectDigit, NumFreqChars, NumCols - NumFreqChars - 2, 0);
+  display_sel_value(VfoFrequency, VfoSelectDigit, NumFreqChars, LcdNumCols - NumFreqChars - 2 - 2, 0);
   lcd.print("Hz");
 
   lcd.setCursor(0, 1);

        lcd.write(char_val + '0');
      }
    }
  }
}

//----------------------------------------
// Display an integer with sign on the display with selected column underlined.


//----------------------------------------
// Display a value on the display with selected column underlined.
//     value       the integer number to show
//     sel_col     the selection offset of digit to underline
//                 (0 is rightmost digit, increasing to the left)
//     num_digits  the number of digits to show on the display
//     col, row    position to display left-most digit at
// If the value is too long it will be truncated at the left.
// This routine inserts a comma every three columns.
//----------------------------------------

void display_sel_value(long value, int sel_col, int num_digits, int col, int row)
{
  char buf [num_digits];
  int index = num_digits - sel_col - 1;
  int comma_count = 3 - (num_digits % 3);  // columns to next comma

#if (DEBUG & DEBUG_DISPLAY)
  Serial.printf("display_sel_value: value=%ld, sel_col=%d, num_digits=%d, col=%d, row=%d",
