Fixed a bug after using double for totalAssets