fixed export directory bug