fix render script error