Remove extraneous ‘end’