Fix missing end of block