corrected bug in export