Add end code block for the first setto