fix autocomp overflow. fixes #22