Fixes many things I can't think of now