Payroll entry get employee error

Dear team
Employee who left company why appear in payroll entry until we cancel salary structure assignment. Can we have filter in payroll so that only active employee will appear?

The particular employee have any attendance for payroll month??