1.Fix some error about class extension;2. Fix errors about the script file