Add missing end block