fix parsing bugs of do statement