fix overflow of autocomp