settings script bugfix