executeLoopBlocks update

Fixed a problem that obliged to set loops in the same order they appear in HTML files.