Bug in addbuffer