fix errors in settings to log function