Selection in a polymorphism with a rare allele