Simpler solution for the crashes when the wallpaper is set