small fix in export function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>