Fixes a lot of things