Remove spurious call to 'end'