Fixing pattern validation in example