buf fix