fixing a null regex.exec issue