[FIX] account : Fixed the global name 'period_date' is not defined.