fix copy for empty tables