Fixed a bug when adding new scripts when you already have 10 existing scripts.