script error fixed