Fix setting of caption in the thumbnail widget