fix deprecated yieldif