fixed bug for dot_count <=3