Fixed bug that caused wrong date set to be retrieved for previous pay period.