Fix grave error in the "update_buffer" method