Fixed cannot export with empty columns

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>