Bug in Payment Entry/ Expense claim

My employee filed an expense claim of Rs. 4840. I had then given him a payment of Rs. 10,000. (partly to reimburse the 4840 and remaining as advance for office expenses.) So, I had entered a payment entry of Rs. 10,000. For some reason, I had to cancel the payment entry (I wanted to reenter it with some details.)
Still after cancellation, the expense claim doctype shows paid status. Personal ledger for the employee has already cancelled 10,000 entry and