fixed script error