Add missing block end