Fix "update_buffer" method