Fixed error in transfer method