Fix buffer trash error and update record