Fixed undefined variable bug

This hopefully fixes the bug that causes the syncing to fail #16
Merge pull request #17 from cmcnamara87/bank-syncing-fails

Fixed undefined variable bug Closes #16