Revert "Revert "payroll download fix""

This reverts commit db0673f2e5fa5fc7b1149d0b73cce6fecf3bf593.