fix the min cal bug

fix the min cal bug