Fix bug in AsyncTargetWrapper