Fix regex bug