Incorrect total row values when switching to count in pivot 1.5.6v

When choosing count operation with pivot 1.5.6 total row in footer counts rows, not cells values. If you switch version in snippet below to 1.4.4 everything goes back to normal. Is there a way to fix it or do i have to downgrade version?

https://snippet.dhtmlx.com/cfvut9et

And how can i downgrade version using from-cdn?

Thank you for your report. The problem was confirmed. We’ll try to fix it in one of the future updates.
I’ll inform you about any further progress on this issue.

And how can i downgrade version using from-cdn?

CDN link for the DHTMLX Diagram is intended for demonstration only. You need to download an official version.