bug fix of regex