Fixing bug 1240, false alarms of credit exceeded.

--HG--
extra : source : a2f9b69e5e501b3532b36f461bfb33e8707a20f1
Merge pull request #460 from einhverfr/1.4

Fixing bug 1240, false alarms of credit exceeded.