fix crossite scripting issue