Fix everything.

I'm too lazy to describe all changes.