put the missing end back

Oh my, how did I manage to lose an end statement!?