Fix tons of shitty bugs