Fixed the thumbnail bug