Fix config and issue in transfer code