laitimes

During the Japanese shogunate era, how to correct homosexuality, so Tokugawa Iemitsu was a homosexual, why did he have children later?