Fix script error