Fix end snippet