fixed bug with double cmp 'auto'