Fixed dashboard switch bug