fixed bug for a.regex