I can't say for certain what the problem would be without more information. My best suggestion would be to ensure you have at least SugarCube 2.36 installed as it includes features that are essential to the code. I was not able to replicate the issue when importing the template fresh into the browser-based version of Twine.