Fixed crash when exporting to DOST - thx Nguyen Hoang :)