only update parent id if buffer is empty