* Minor fix for generating thumbnail