Settings switch bug fix.