Pastel Payroll - Termination

I have an employee who resigned with his last day the 12th of April.  I have done the Leave payout as well as terminate this employee.  I do the payroll Run, but it does not calculate the amounts correctly.  It keep the amounts as if the employee has been working for the whole month.  But we only need to pay him until the 12th.