Fixing the thumbnail problem