Failed credits bug

Fixes #1036