The probe should have been in the thigh meat not touching bone.
I prefer to cook my chickens to higher than 165, my target temp is 176 in the thigh. At 176 and some carry over to 180-183 dark meat is a better texture in my opinion.
165 is said to be safe but it can sometimes be very firm and somewhat pink. While I know it is safe I do not like the texture.