Neutral safety switch

Unless the rooster comb in the trans is messed up, if it works in neutral it should work in park. Likely the linkage adjustment is not just right. Do your reverse light work correctly?