Index: trunk/psphot/src/psMinimize.c
===================================================================
--- trunk/psphot/src/psMinimize.c	(revision 4977)
+++ trunk/psphot/src/psMinimize.c	(revision 5048)
@@ -95,5 +95,5 @@
 
     // iterate until the tolerance is reached, or give up
-    while ((min->lastDelta > min->tol) && (min->iter < min->maxIter)) {
+    while ((min->iter < min->maxIter) && ((min->lastDelta > min->tol) || !isfinite(min->lastDelta))) {
 
         // set a new guess for Alpha, Beta, Params
