fix a bug
fix the bug in exporting and pairwise plots