fix buf for validator regexp