fixed error in thumbnails widget