fixed duplication of thumbnails