fix buffer cap error