Fixed a bug with spreadsheets and custom result output