Wallpaper: Fix wallpaper erro (nil value) due to index out of bound