Fix bug that modify the default buffer.