Update on buffer change.