Fix signature of addBuffer (from add_buffer)