correct script error