Fixing some issues with testing when a ideal individual is found.