fixed getPeriodAssignments, percent not working