Minimum investment times and mandatory profit sharing might help.
Make investors consider long-term and create income for shareholders from all profitable companies.
Right now a company can lose money while making shareholders rich, or make money while making shareholders poor. This is stupid.