Add missing end blank lines