fixed parsing of do blocks with labelled ends