Updates after Seb's feedback - fixed script editor crash on Linux