fixed template issue with thumbnail