Credit balance bug fix