Males will prefer the most mature female in the tank or the least pregnant. I find either increasing your male/female ratio(to distract males away from the one female) works or add more plants so the harassed female can hide better from the harassing males.