Fix append buffer behavior