work around strange behavior of SearchPattern