fix ba should be buf