Fixed bug in RegexpPattern.