fix for script error