Fixes:

- Fix the null exception when trying to clear total in initial building
   from the DB.