I have no clue why the changes I made helped.