bugfix in exporting contacts