Fix crash when open settings window due to unitinitialized constants in one of the constructors