Fixed an issue with canAfford