added a fix to handle balance with null values