Changed Script.java to fix a new bug