Fix bug in global settings.