Fix unmatched do

Issue #2