Fixes code to work with new bank account entities

The demo previously fails for the new bank account entities which were added a month ago - this isnt an ideal way to fix it (would be better to ucfirst() the subentity at its origin but I just needed a quick fix which you probably do too...)