bug fix for thumbnail