Fix unbalanced block syntax bug. End tags work as expected now