regist buf fix