fix error introduced by 'secrets' preference setting