Fix method snippet