should fix the bugs in bank.js