Fix double confirmation on modified buffers