Fix snippet wrapper