pull request to fix thumbnail undefined issue

fix for thumbnail undefined issue