fixed a bug when copying single-column data