Latest_applied api changed, fix argument error