fix regex bug