fix to main.js for console log of totalTickCount to work