Console: Fix issue while updating existing scripts