Fixing $setText for spreadsheets