Fixed issue where scripting doesn't work.