Fix Atomic::BufferScratch memory offset bug