fixes bug when settings service is called several times