Fixed script problems.