Fixed issue where balance not being calculated correctly

Deleting transactions still needs work.