Fix a lot of stuff that broke on deployment.