fix null-value regex ( infinite loop bug )