restore previous and current buffer number after scratch buffer