basic buf fix