fixxing scripting error