Fix indexes on thumbnails