Fix many issues.