Fixed issue in summary when no data in db yet.