buf fix: nested function call