Fucked up the IF, but it worked anyway.
Turns out we don't need it.
Fixed refactor bug