remove extra end

there is an extra 'end'