This is a very old script file when "end" is not reserved for the end of a matrix. Please use other variable name such as kend to replace it, and it will work. Actually yuo can simply the adjunct lines without using kern.
I just tested and verified:
Please Login to Report Topic
Please Login to Share Feed
Edit Discussion
You are navigating away from the AIS Discovery experience