Fixes lots of things