leak in Scripts fixed