Fixed all the things I destroyed with my midnight coding.