Fixed bug in read_settings.