Memory leak fix
Make the script editor work again