fix credit bug
Merge pull request #8 from Altruja/master

fix credit bug