Fixing bug 1240, false alarms of credit exceeded.