Fix ApplyBuffer.