Fix duplicate content in widget code