fix attaching the target