Fixed some scriptname problem.