Fixed keyerror in user cash reference