Bank Entry After Loan Adjusted Against Salary

Hi All,
I have a loan that is adjusted against employee’s salary. The payroll entry is correctly run and salary slip is correctly created showing loan deduction and net payable correctly.
However, when i create Bank Entry from the Payroll Entry, the Bank Entry is of the gross amount, that is, without deduction of loan amount.

Is this a glitch in system or am I do something wrong? The Bank entry should be based on net amount, net of loan.

Any advise will be highly appreciated.