Fixed bugs in find all instances for a pattern.