bug fix for memoized coin.