Fixed pattern validation bug; updated build