Repair direct method bug