fix load script error