fix *max-diff* usage