regex bug fixed