buffer correction