Fixed a bug with SET export