Fix snippet creation.