Fixing table export problem