fixed bug of PREG