Fixes a regex bug.