Change do..end in scopes to {}