Fix Script bug