diff --git a/api.go b/api.go
index 9dcbb033bd706c383c6074fdb5d12bfdadc9b4a6..b2a340d02c15dc67e298f13bd4e31fbe23dacefa 100644
--- a/api.go
+++ b/api.go
@@ -62,5 +62,9 @@ func (s *Settings[C]) SetMnemonic(mnemonic string) *Settings[C] {
 // Remember that the configuration is a copy of the original configuration.
 // Changes to the configuration will not be reflected in the original configuration.
 func (s *Settings[C]) Config() C {
+
+	s.Lock()
+	defer s.Unlock()
+
 	return s.config
 }