fix bug for transfer data