fix settings class as singleton