Fix bug that stopped some credit functions resolving