I ran into this same problem. If you open the demo and update the CoreScript to the current version, you still get the same issue. I tracked it to line 279. It's caused by how you get the iconWidth and iconHeight.