There are two ways to improve situation, both are for the very far future (assuming humanity will survive long enough). Either change the human brain itself artificially, to remove hacks and shortcuts made by the mother nature, and make people really rational (I am not speaking about removing emotions, just removing their ability to cloud the judgement) and with minimum of cognitive biases and fallacies, or to make an AGI to rule the humanity (probably a worse solution since it will be uneven relationship).
Humanity already corrects itself in terms of better adaptation for denser and wider social life. Modern urban society requires less emotional response than people were able to give centuries ago. You have to accommodate wider circle of people that you interact with, including the incredible amount of strangers that you meet through whole life. With population growth and more urbanization this process will only continue.