fix memory leak/bug regarding dogfights
fix warning in transfers