fix a regex bug