Flawed AI makes robots racist, sexist