make sync with (max_)quantity work