update auto-adjust for issue#24