fixed errors in transfer