Fix Null Regex detection