Fixed a silly bug in the export function routine