fixed ScriptHandler.php