fix a bug in minRaise