Fix block nesting

Blocks nested inside an element inside a block where not parsed properly.