Income tax calcultion error in salary slip

I set up payroll in erpnext i create salary component, income tax slab, create salary structure, and assign salary structure to employee, create payroll period
i create payslip of june and july by make payroll entry then in salary then income component
and deduction income component so correct in table
For create salary slip of Aug when i create salary slip one by one-- go to Salary slip and add new salary slip for an employee and save then in deduction table income tax become 0
if i create salary slip by payroll entry then it calculate correctly why
please provide solution

thanks