Ugh fix horrible infloop bug