Fix bug with pattern matching of a do expression