Fix some errors with the wallpaper switcher.