fixed autocomp bugs