Fixed the crash when opening the settings in the cnc mod. Fixed the scrolling in BuildPaletteWidget.