fix sync max-next