fixed bug of regex