fixed deleting thumbnails bug