AI has problems turning in on Tomb of the Spider Queen

What title says.

Here’s the algorithm:

10 I have gems, I go turn in
20 Click turn in
30 Idle for 3 seconds
40 Mount up
50 GOTO 10

Bug is that turning in takes longer than 3 seconds so turning in never finishes. This vicious cycle lasts forever.

Note: I am talking about AI-replaced player.

A video of the “incident”: - YouTube
Reddit thread: https://www.reddit.com/r/heroesofthestorm/comments/ffaf23/bug_ai_cant_turn_in_gems_on_tomb_of_the_spider/

They also do it on Blackheart’s bay. So if they collect coins it’s very annoying.

I know this wont work even nearly always, but sometimes if you ping the turn in multiple times, they will finally pay the gems or doubloons.