fixed MongoDB regex search bug