Leave application, incorrect used leaves

When I create a new Leave Application, in the Dashboard, the number of used leaves is being calculated incorrectly. I think it’s taking into account the number of leave applications approved for an employee but not taking into account half day leaves. So for e.g.:

In case of 4 leave application of which 2 are full day applications and 2 are half day applications, the used leaves are being shown as 4 instead of 3.

Here is a similar observation

Thanks @clarkej. Yes, this is the same issue.