Fixed pattern delete bug.  Fix and close #78