fixed dynamic memory for threads issue