fix bug of replace /g