buf fix in normalize method