fixed bug with the write back buffer