fix attachedToTargetWithConfig:error: