fixed maybe thread thing