fixed a regex bug