Fixed nested blocks.

Blocks introduced inside replaced blocks are valid.