fix query match index

given the current regexp, match[4] is undefined.