Correction for weird layout issues with the export functions