added fix when data for last payroll periods is limited