fixing thumbnail issue