Fixed subtle error in dictionary "grep" routine.