I just found out that whenever parent comments are deleted, while it correctly shows the updated comment section on the bottom of the post, it displays the wrong comment count in the metadata.
So, for example, I have 5 comments. 1 of them has nested comments that go down to the 3rd level while the rest have no child comments. I delete this parent comment and the comment count in metadata info shows 8 comments all in all even though the comment section just has 4 comments in total after the process.
I'm trying to see if there is a way to correctly represent the comment count in the metadata after trashing a parent comment.