fix buffer errors