fix for homepage when folders are deleted and gifs are homeless