change addbuffer position for updateend event