Fixing Bias in AI

It was reported recently that Amazon shut down an AI-powered recruitment system because it discriminated against women. The system was designed to look at a collection of resumes and pick the best candidates, but most of those it picked were men. Apparently, the team building the system decided that it was impossible to stop it from finding ways to discriminate against female candidates. What could have been done to avoid this situation is to recognize the limitations of AI and have a development plan to work within those.