These 4 lines are the only lines that fix everything.

Everything else is a result of me changing random stuff to figure out what's going on!