fix settings endpoint