fixed a script error