Fixed minor bug with new trasnfer code