Fixed some outdate script changes