Issue with Payment Entry while on Withholding Tax

hi. i have just used ‘bench update’ command after that when i create a payment entry against any purchase invoice, than want to withhold amount on that purchase invoice here is the problem occurred when i check withhold category and save the document than tax calculation is not happening. I have to unlink purchase invoice than calculation is being placed.