fix thumbnail generation