Fix next min result bug